#!usr/bin/env python  
# -*- coding:utf-8 _*-
""" 
@author:robot
@file: url.py 
@version:
@time: 2022/04/02 
"""


class DevJenkinsSetting:
    headers = {
        "Content-Type": "application/x-www-form-urlencoded"
    }
    login_data = {
        "j_username": "robot",
        "j_password": "Gotapd8!",
        "from": "/",
        "Submit": "登录"}

    wfapi_runs = 'wfapi/runs'

    login_url = "http://jenkins.devops.tapdata.net/j_acegi_security_check"

    tapdaas_manual = 'http://jenkins.devops.tapdata.net/job/tapdaas-manual/'

    tapdaas_2_manual = 'http://jenkins.devops.tapdata.net/view/%E4%BC%81%E4%B8%9A%E7%89%88/job/daas-v2/'

    dfs = 'http://jenkins.devops.tapdata.net/job/dfs_prod_build2.0/'

    daas_url = {
        'daas1': tapdaas_manual,
        'daas2': tapdaas_2_manual,
        'dfs': dfs
    }

    runs_url = {
        'daas1': f'{tapdaas_manual}{wfapi_runs}',
        'daas2': f'{tapdaas_2_manual}{wfapi_runs}',
        'dfs': f'{dfs}{wfapi_runs}',
    }

    harbor_regex = r"harbor.devops.tapdata.net:30002\S*?\n\b"
